﻿using System.Data.Entity;
using RPSImporter.Models.Settings;

namespace RPSImporter.Models
{
   public class RPSImporterContext : DbContext
   {
      // You can add custom code to this file. Changes will not be overwritten.
      // 
      // If you want Entity Framework to drop and regenerate your database
      // automatically whenever you change your model schema, add the following
      // code to the Application_Start method in your Global.asax file.
      // Note: this will destroy and re-create your database with every model change.
      // 
      // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<RPSImporter.Models.RPSImporterContext>());

      public RPSImporterContext()
         : base("name=appDbConnection")
      { }

      public DbSet<User> Users { get; set; }

      public DbSet<GeneralSettings> GeneralSettings { get; set; }

      public DbSet<CompanyFileSettings> CompanyFileSettings { get; set; }

      public DbSet<EnterpriseFileSettings> EnterpriseFileSettings { get; set; }

      public DbSet<HierarchyFileSettings> HierarchyFileSettings { get; set; }

      public DbSet<HoursHierarchyFileSettings> HoursHierarchyFileSettings { get; set; }

      public DbSet<HoursPersonFileSettings> HoursPersonFileSettings { get; set; }

      public DbSet<PersonFileSettings> PersonFileSettings { get; set; }
   }
}
